import Vue from 'vue'
import Router from 'vue-router';
import Index from '@/pages/Index';//首页访问Layout
import Login from '@/components/Public/Login';//登录页面
import Register from '@/components/Public/Register';//注册页面
import DoctorLogin from '@/components/Public/DoctorLogin';//医生端登录
import Appointment from '@/pages/Appointment';//预约挂号
import OnlineInquiry from '@/pages/OnlineInquiry';//在线问诊
import OnlineMall from '@/pages/OnlineMall';//在线商城
import HealthLecture from '@/pages/HealthLecture';//健康讲堂
import QuestionDoctor from '@/pages/QuestionDoctor';//名医问答
import HealthInformation from '@/pages/HealthInformation';//健康资讯


Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [
    //首页访问Layout
    {path: '/', name: 'Index', component: Index},
    //登录页面
    {path: "/Login", name: "Login", component: Login},
    //注册页面
    {path: "/Register", name: "Register", component: Register},
    //医生端登录
    {path: "/DoctorLogin", name: "DoctorLogin", component: DoctorLogin},
    //预约挂号
    {path: '/Appointment', name: 'Appointment', component: Appointment},
    //在线问诊
    {path: '/OnlineInquiry', name: 'OnlineInquiry', component: OnlineInquiry},
    //在线商城
    {path: '/OnlineMall', name: 'OnlineMall', component: OnlineMall},
    //健康讲堂
    {path: '/HealthLecture', name: 'HealthLecture', component: HealthLecture},
    //名医问答
    {path: '/QuestionDoctor', name: 'QuestionDoctor', component: QuestionDoctor},
    //健康资讯
    {path: '/HealthInformation', name: 'HealthInformation', component: HealthInformation},
  ]
})
